package com.g.localmsg.starter.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface LocalTransaction {

    int maxRetries() default 3;

    //是否异步执行，
    boolean async() default true;

    int timeout() default 3000;

    int interval() default 5000;

    /**
     * 事务优先级, 数字越小, 优先级越高
     *
     */
    int priority() default 5;


}
